#定义异步任务
from celery_tasks.main import celery_app
from .yuntongxun.sms import CCP
from . import constains

@celery_app.task(name='send_sms_code')
def send_sms_code(mobile,sms_code):
    CCP().send_template_sms(mobile, [sms_code, constains.SMS_CODE_REDIS_EXPIRES // 60], 1)